package com.zl.learning.json.gson;

import lombok.Data;

import java.util.List;

@Data
public class PageData<T> {
    private Long total;
    private Integer pageNum;
    private Integer pageSize;
    private Integer pages;
    private List<T> results;

    public PageData() {
    }

    public PageData(Long total, Integer pageNum, Integer pageSize, Integer pages,List<T> results) {
        this.total = total;
        this.pageNum = pageNum;
        this.pageSize = pageSize;
        this.pages = pages;
        this.results = results;
    }
}
